<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
</body>
<script src="static/lib/store/store.min.js"></script>
<script>
    var uinfo =  {token:"123321123",uname:"葛佩",ucode:"gep",userType:1};
    //window.localStorage.setItem("user",uinfo);
    store.set("user",{"user":uinfo});
    if(uinfo == {} || !uinfo.token || '' == uinfo.token){
        //重新登录，打开登录界面
        window.location.href = "static/pages/login/login.html#index/login"
    }else{
        //打开主界面
        window.location.href = "portal.html"
    }

</script>
</html>